<mat-progress-bar *ngIf="isOnLoading" mode="indeterminate"></mat-progress-bar>
<mat-tab-group #tabGroup>
  <mat-tab label="view">
    <ng-template mat-tab-label>
      <mat-icon>remove_red_eye</mat-icon>
    </ng-template>
    <div class="markdown-section" [innerHTML]="file | async"></div>
  </mat-tab>
  <mat-tab *ngIf="authService.isAdmin && codeBackup != '出错了！'" label="edit">
    <ng-template mat-tab-label>
      <mat-icon>code</mat-icon>
    </ng-template>
    <mat-form-field>
      <textarea matInput [(ngModel)]="code" (keyup)="mark(code)" cols="300"></textarea>
    </mat-form-field>
  </mat-tab>
</mat-tab-group>
<app-comment class="comment-label" [issue]="number"></app-comment>
<app-footer></app-footer>
<button *ngIf="isChanged" class="edit-btn" mat-fab (click)="updateFileContent()">
  <mat-icon>save</mat-icon>
</button>

